[client-v2, jdbc-v2] queryID auto-generation#2673
Merged
Conversation
|
|
This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 2 weeks if no further activity occurs. Please feel free to give a status update or ping for review. Thank you for your contributions! |
Client V2 CoverageCoverage Report
Class Coverage
|
JDBC V2 CoverageCoverage Report
Class Coverage
|
JDBC V1 CoverageCoverage Report
Class Coverage
|
Client V1 CoverageCoverage Report
Class Coverage
|
mzitnik
reviewed
Jan 21, 2026
jdbc-v2/src/main/java/com/clickhouse/jdbc/internal/JdbcConfiguration.java
Outdated
Show resolved
Hide resolved
client-v2/src/main/java/com/clickhouse/client/api/internal/HttpAPIClientHelper.java
Show resolved
Hide resolved
mzitnik
approved these changes
Jan 25, 2026
… another test for that
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Summary
queryIdto exception so it is easier to match fail on client and serverServerExceptioncode and query ID are propagated toSQLExceptioncom.clickhouse.jdbc.DriverProperties#QUERY_ID_GENERATORto let set ID generator from JDBC.Closes #2642
Checklist
Delete items not relevant to your PR:
Note
Introduces query ID auto-generation and end-to-end propagation for tracing requests and failures.
Builder.setQueryIdGenerator(Supplier<String>)and auto-fillsqueryIdinQuerySettings/InsertSettingswhen missing; retry/error logs now includequeryIdClickHouseExceptionholdsqueryId;ServerExceptionnow includesqueryId, constructor updated, and commonErrorCodesenum added; HTTP helper extractsX-ClickHouse-Query-Idand injects into messages/wrapped exceptionsDriverProperties.QUERY_ID_GENERATOR;StatementImpl/WriterStatementImpluse generator and expose last query ID;JdbcConfigurationwires supplier from connection propertiesRecordsnow exposesgetQueryId(); minor copy edits andClientfields finalizedWritten by Cursor Bugbot for commit b226f33. This will update automatically on new commits. Configure here.